package com.atwisdom.star.common.actionType.basic;

/**************************************************************************************
 * 方法枚举
 *
 **************************************************************************************/
public enum TimerActionType {
    //region ******************对应TimerDslService中的方法*urlPath = "/timer"*****************
    TIMER_ADD("ADD", "add", "添加"),
    TIMER_BATCH_ADD("BATCH_ADD", "batchAdd", "批量添加"),
    TIMER_UPDATE("UPDATE", "update", "更新"),
    TIMER_BATCH_UPDATE("BATCH_UPDATE", "batchUpdate", "批量更新"),
    TIMER_DELETE("DELETE", "delete", "删除"),
    TIMER_BATCH_DELETE("BATCH_DELETE", "batchDelete", "批量删除"),
    TIMER_DELETE_BY_IDS("DELETE_BY_IDS", "deleteByIds", "批量删除"),
    TIMER_QUERY("QUERY", "query", "查询"),
    TIMER_QUERY_INFO("QUERY_INFO", "queryInfo", "查询摘要"),
    TIMER_QUERY_BY_IDS("QUERY_BY_IDS", "queryByIds", "查询"),
    TIMER_QUERY_BY_PAGE("QUERY_BY_PAGE", "queryByPage", "分页查询"),
    TIMER_QUERY_INFO_BY_PAGE("QUERY_INFO_BY_PAGE", "queryInfoByPage", "分页查询摘要");
   //endregion

    private final String code;
    private final String methodName;
    private final String description;

    public String getCode() {
        return code;
    }

    public String getMethodName() {
        return methodName;
    }

    public String getDescription() {
        return description;
    }

    TimerActionType(String code, String methodName, String description) {
        this.code = code;
        this.methodName = methodName;
        this.description = description;
    }
}
